<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Facades\DB;
class InsertDataToArea extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        $data = [
            [
                "name" => "和平区",
            ],
            [
                "name" => "河西区",
            ],
            [
                "name" => "河东区",
            ],
            [
                "name" => "河北区",
            ],
            [
                "name" => "红桥区",
            ],
            [
                "name" => "南开区",
            ],
            [
                "name" => "北辰区",
            ],
            [
                "name" => "东丽区",
            ],
            [
                "name" => "武清区",
            ],
            [
                "name" => "津南区",
            ],
            [
                "name" => "蓟州区",
            ],
            [
                "name" => "塘沽",
            ],
            [
                "name" => "大港",
            ],
            [
                "name" => "汉沽",
            ],
            [
                "name" => "静海",
            ],
            [
                "name" => "宝坻",
            ],
            [
                "name" => "外省",
            ],

        ];
        Db::table("area")->insert($data);
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Db::table("area")->truncate();
    }
}
